package cn.wolfcode.util;

import cn.wolfcode.user.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-11-08 9:28
 */
public class LoginUtils {
    public static User isLogin(HttpServletRequest request, HttpServletResponse response){

        Object user_in_session = request.getSession().getAttribute("USER_IN_SESSION");
        return (User) user_in_session;
    }
}
